package org.mikeliu.exp3.homework4;
/* 请在下面的 Begin 和 end之间修改源程序。 
不可以修改 final 变量的值
final方法,不可以重写
不可以定义final 类
*/
public class Main {
  public static void main(String args[]) {
      Bike1 obj = new Bike1();
      obj.run();

      Honda honda = new Honda();
      honda.run();

      Yamaha yamaha = new Yamaha();
      yamaha.run();
  }
}

/********** Begin *********/
class Bike1 {
  final int speedlimit = 120;

  void run() {
      System.out.println("speedlimit=120");
  }
}

class Bike2 {
  final void run() {
      System.out.println("running");
  }
}

class Honda {
  void run() { 
      System.out.println("running safely with 100kmph");
  }
}

final class Bike3 {
}

class Yamaha { 
  void run() {
      System.out.println("running safely with 100kmph");
  }
}
/********** end *********/
